package com.x.uikit.service;

import android.content.Context;

import androidx.annotation.NonNull;

import com.x.uikit.page.XPage;
import com.x.uikit.router.XRoute;

public interface IPageRouteService extends XServiceModule {
    void navigate(@NonNull XRoute route, @NonNull PageLoader loader);

    public interface PageLoader {
        XPage load(@NonNull XRoute route, @NonNull Context context);
    }
}
